package com.microservices.cloud.service.fallback;

import com.microservices.cloud.entities.CommonResult;
import com.microservices.cloud.entities.Payment;
import com.microservices.cloud.service.PaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallBackService  implements PaymentService {


    @Override
    public CommonResult<Payment> getPayment(Long id) {
        return new CommonResult<>(444, "服务降级返回，-----PaymentFallBackService ",new Payment(id,"errorSerial value"));
    }
}
